package com.anti.modular.bus.billrentadjustment.service;

import com.anti.jdbc.support.page.PageParam;
import com.anti.jdbc.support.page.PageResult;
import com.anti.modular.bus.billrentadjustment.entity.BillRentAdjustment;
import com.anti.modular.bus.billrentadjustment.param.BillRentAdjustmentParam;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 租金调整记录service接口
 *
 * @author anti
 * @date 2021-05-10 14:46:45
 */
public interface BillRentAdjustmentService{

    /**
    * 根据主键查询实体
    */
    BillRentAdjustment getById(BillRentAdjustmentParam billRentAdjustmentParam);

    /**
     * 查询租金调整记录
     *
     * @author anti
     * @date 2021-05-10 14:46:45
     */
    PageResult page(PageParam pageParam,BillRentAdjustmentParam billRentAdjustmentParam);

    /**
     * 租金调整记录列表
     *
     * @author anti
     * @date 2021-05-10 14:46:45
     */
    List<BillRentAdjustment> list(BillRentAdjustmentParam billRentAdjustmentParam);


    List<BillRentAdjustment> getAdjustmentListByLeaseId(Long  leaseId);

    /**
     * 添加租金调整记录
     *
     * @author anti
     * @date 2021-05-10 14:46:45
     */
    void add(BillRentAdjustmentParam billRentAdjustmentParam);

    /**
     * 删除租金调整记录
     *
     * @author anti
     * @date 2021-05-10 14:46:45
     */
    void delete(BillRentAdjustmentParam billRentAdjustmentParam);


    void deleteAdjustById(Long id);

    void deleteAdjustByIdOnEditZk(Long leaseId,Integer qsNum);
    /**
     * 编辑租金调整记录
     *
     * @author anti
     * @date 2021-05-10 14:46:45
     */
    void edit(BillRentAdjustmentParam billRentAdjustmentParam);

    /**
     * 查看租金调整记录
     *
     * @author anti
     * @date 2021-05-10 14:46:45
     */
     BillRentAdjustment detail(BillRentAdjustmentParam billRentAdjustmentParam);

     BillRentAdjustment getAdjustAmountByLeaseIdOnQsNum(Long leaseId,Integer qsNum);
}
